<template>
	<section>
		<headers txt="密码管理"></headers>
		<ul class="mu20">
			<li class="bbtm md10 sz30 wallfff">
				<a href="javascript: void(0)" @click="decide" data-i="login" class="flex_between p30 hue333">
					<span>登录密码</span>
					<i class="icon-advance"></i>
				</a>
			</li>
			<li class="bbtm md10 sz30 wallfff">
				<a href="javascript: void(0)" @click="decide" data-i="pay" class="flex_between p30 hue333">
					<span>支付密码</span>
					<i class="icon-advance"></i>
				</a>
			</li>
		</ul>
	</section>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		methods: {
			decide: function(e) {
				let v = this,
					attrs = e.currentTarget.getAttribute("data-i"),
					info = JSON.parse(sessionStorage.infos);
					
				if(attrs === "login") {
					if(info.Members_HasLoginPwd) {
						v.$router.push({
							path: '/ownAll/typepwd',
							query: {
								types: attrs
							}
						})
					} else {
						v.$router.push({
							path: '/ownAll/tipsetpwd',
							query: {
								types: attrs
							}
						})
					}
				} else {
					if(info.Members_HasPayPwd) {
						v.$router.push({
							path: '/ownAll/typepwd',
							query: {
								types: attrs
							}
						})
					} else {
						v.$router.push({
							path: '/ownAll/tipsetpwd',
							query: {
								types: attrs
							}
						})
					}
				}

			},
		}
	}
</script>

<style>

</style>